export default class Role {
  #type = 0 // 0 creature | 1 zombie
  #id = 0
  restMovement = null // 未完成的动作队列
  x = 0
  y = 0

  constructor(id, type, x, y, restMovement) {
    this.#type = type
    this.#id = id
    this.x = x
    this.y = y
    if (restMovement != undefined) {
      this.restMovement = restMovement
    }
  }

  get type() {
    return this.#type
  }

  get id() {
    return this.#id
  }
}